package cn.yunhe.crm.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BusinessExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BusinessExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOidIsNull() {
            addCriterion("oid is null");
            return (Criteria) this;
        }

        public Criteria andOidIsNotNull() {
            addCriterion("oid is not null");
            return (Criteria) this;
        }

        public Criteria andOidEqualTo(Integer value) {
            addCriterion("oid =", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidNotEqualTo(Integer value) {
            addCriterion("oid <>", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidGreaterThan(Integer value) {
            addCriterion("oid >", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidGreaterThanOrEqualTo(Integer value) {
            addCriterion("oid >=", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidLessThan(Integer value) {
            addCriterion("oid <", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidLessThanOrEqualTo(Integer value) {
            addCriterion("oid <=", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidIn(List<Integer> values) {
            addCriterion("oid in", values, "oid");
            return (Criteria) this;
        }

        public Criteria andOidNotIn(List<Integer> values) {
            addCriterion("oid not in", values, "oid");
            return (Criteria) this;
        }

        public Criteria andOidBetween(Integer value1, Integer value2) {
            addCriterion("oid between", value1, value2, "oid");
            return (Criteria) this;
        }

        public Criteria andOidNotBetween(Integer value1, Integer value2) {
            addCriterion("oid not between", value1, value2, "oid");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeIsNull() {
            addCriterion("annualfee is null");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeIsNotNull() {
            addCriterion("annualfee is not null");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeEqualTo(Integer value) {
            addCriterion("annualfee =", value, "annualfee");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeNotEqualTo(Integer value) {
            addCriterion("annualfee <>", value, "annualfee");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeGreaterThan(Integer value) {
            addCriterion("annualfee >", value, "annualfee");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeGreaterThanOrEqualTo(Integer value) {
            addCriterion("annualfee >=", value, "annualfee");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeLessThan(Integer value) {
            addCriterion("annualfee <", value, "annualfee");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeLessThanOrEqualTo(Integer value) {
            addCriterion("annualfee <=", value, "annualfee");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeIn(List<Integer> values) {
            addCriterion("annualfee in", values, "annualfee");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeNotIn(List<Integer> values) {
            addCriterion("annualfee not in", values, "annualfee");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeBetween(Integer value1, Integer value2) {
            addCriterion("annualfee between", value1, value2, "annualfee");
            return (Criteria) this;
        }

        public Criteria andAnnualfeeNotBetween(Integer value1, Integer value2) {
            addCriterion("annualfee not between", value1, value2, "annualfee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeIsNull() {
            addCriterion("eleresourcefee is null");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeIsNotNull() {
            addCriterion("eleresourcefee is not null");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeEqualTo(Integer value) {
            addCriterion("eleresourcefee =", value, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeNotEqualTo(Integer value) {
            addCriterion("eleresourcefee <>", value, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeGreaterThan(Integer value) {
            addCriterion("eleresourcefee >", value, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeGreaterThanOrEqualTo(Integer value) {
            addCriterion("eleresourcefee >=", value, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeLessThan(Integer value) {
            addCriterion("eleresourcefee <", value, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeLessThanOrEqualTo(Integer value) {
            addCriterion("eleresourcefee <=", value, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeIn(List<Integer> values) {
            addCriterion("eleresourcefee in", values, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeNotIn(List<Integer> values) {
            addCriterion("eleresourcefee not in", values, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeBetween(Integer value1, Integer value2) {
            addCriterion("eleresourcefee between", value1, value2, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andEleresourcefeeNotBetween(Integer value1, Integer value2) {
            addCriterion("eleresourcefee not between", value1, value2, "eleresourcefee");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeIsNull() {
            addCriterion("sourcingtime is null");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeIsNotNull() {
            addCriterion("sourcingtime is not null");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeEqualTo(Date value) {
            addCriterionForJDBCDate("sourcingtime =", value, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("sourcingtime <>", value, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeGreaterThan(Date value) {
            addCriterionForJDBCDate("sourcingtime >", value, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("sourcingtime >=", value, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeLessThan(Date value) {
            addCriterionForJDBCDate("sourcingtime <", value, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("sourcingtime <=", value, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeIn(List<Date> values) {
            addCriterionForJDBCDate("sourcingtime in", values, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("sourcingtime not in", values, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("sourcingtime between", value1, value2, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingtimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("sourcingtime not between", value1, value2, "sourcingtime");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodIsNull() {
            addCriterion("sourcingmethod is null");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodIsNotNull() {
            addCriterion("sourcingmethod is not null");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodEqualTo(Integer value) {
            addCriterion("sourcingmethod =", value, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodNotEqualTo(Integer value) {
            addCriterion("sourcingmethod <>", value, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodGreaterThan(Integer value) {
            addCriterion("sourcingmethod >", value, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodGreaterThanOrEqualTo(Integer value) {
            addCriterion("sourcingmethod >=", value, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodLessThan(Integer value) {
            addCriterion("sourcingmethod <", value, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodLessThanOrEqualTo(Integer value) {
            addCriterion("sourcingmethod <=", value, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodIn(List<Integer> values) {
            addCriterion("sourcingmethod in", values, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodNotIn(List<Integer> values) {
            addCriterion("sourcingmethod not in", values, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodBetween(Integer value1, Integer value2) {
            addCriterion("sourcingmethod between", value1, value2, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcingmethodNotBetween(Integer value1, Integer value2) {
            addCriterion("sourcingmethod not between", value1, value2, "sourcingmethod");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelIsNull() {
            addCriterion("sourcinglevel is null");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelIsNotNull() {
            addCriterion("sourcinglevel is not null");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelEqualTo(Integer value) {
            addCriterion("sourcinglevel =", value, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelNotEqualTo(Integer value) {
            addCriterion("sourcinglevel <>", value, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelGreaterThan(Integer value) {
            addCriterion("sourcinglevel >", value, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("sourcinglevel >=", value, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelLessThan(Integer value) {
            addCriterion("sourcinglevel <", value, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelLessThanOrEqualTo(Integer value) {
            addCriterion("sourcinglevel <=", value, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelIn(List<Integer> values) {
            addCriterion("sourcinglevel in", values, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelNotIn(List<Integer> values) {
            addCriterion("sourcinglevel not in", values, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelBetween(Integer value1, Integer value2) {
            addCriterion("sourcinglevel between", value1, value2, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcinglevelNotBetween(Integer value1, Integer value2) {
            addCriterion("sourcinglevel not between", value1, value2, "sourcinglevel");
            return (Criteria) this;
        }

        public Criteria andSourcingwayIsNull() {
            addCriterion("sourcingway is null");
            return (Criteria) this;
        }

        public Criteria andSourcingwayIsNotNull() {
            addCriterion("sourcingway is not null");
            return (Criteria) this;
        }

        public Criteria andSourcingwayEqualTo(Integer value) {
            addCriterion("sourcingway =", value, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andSourcingwayNotEqualTo(Integer value) {
            addCriterion("sourcingway <>", value, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andSourcingwayGreaterThan(Integer value) {
            addCriterion("sourcingway >", value, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andSourcingwayGreaterThanOrEqualTo(Integer value) {
            addCriterion("sourcingway >=", value, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andSourcingwayLessThan(Integer value) {
            addCriterion("sourcingway <", value, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andSourcingwayLessThanOrEqualTo(Integer value) {
            addCriterion("sourcingway <=", value, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andSourcingwayIn(List<Integer> values) {
            addCriterion("sourcingway in", values, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andSourcingwayNotIn(List<Integer> values) {
            addCriterion("sourcingway not in", values, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andSourcingwayBetween(Integer value1, Integer value2) {
            addCriterion("sourcingway between", value1, value2, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andSourcingwayNotBetween(Integer value1, Integer value2) {
            addCriterion("sourcingway not between", value1, value2, "sourcingway");
            return (Criteria) this;
        }

        public Criteria andAllotIsNull() {
            addCriterion("allot is null");
            return (Criteria) this;
        }

        public Criteria andAllotIsNotNull() {
            addCriterion("allot is not null");
            return (Criteria) this;
        }

        public Criteria andAllotEqualTo(Integer value) {
            addCriterion("allot =", value, "allot");
            return (Criteria) this;
        }

        public Criteria andAllotNotEqualTo(Integer value) {
            addCriterion("allot <>", value, "allot");
            return (Criteria) this;
        }

        public Criteria andAllotGreaterThan(Integer value) {
            addCriterion("allot >", value, "allot");
            return (Criteria) this;
        }

        public Criteria andAllotGreaterThanOrEqualTo(Integer value) {
            addCriterion("allot >=", value, "allot");
            return (Criteria) this;
        }

        public Criteria andAllotLessThan(Integer value) {
            addCriterion("allot <", value, "allot");
            return (Criteria) this;
        }

        public Criteria andAllotLessThanOrEqualTo(Integer value) {
            addCriterion("allot <=", value, "allot");
            return (Criteria) this;
        }

        public Criteria andAllotIn(List<Integer> values) {
            addCriterion("allot in", values, "allot");
            return (Criteria) this;
        }

        public Criteria andAllotNotIn(List<Integer> values) {
            addCriterion("allot not in", values, "allot");
            return (Criteria) this;
        }

        public Criteria andAllotBetween(Integer value1, Integer value2) {
            addCriterion("allot between", value1, value2, "allot");
            return (Criteria) this;
        }

        public Criteria andAllotNotBetween(Integer value1, Integer value2) {
            addCriterion("allot not between", value1, value2, "allot");
            return (Criteria) this;
        }

        public Criteria andCheckstateIsNull() {
            addCriterion("checkstate is null");
            return (Criteria) this;
        }

        public Criteria andCheckstateIsNotNull() {
            addCriterion("checkstate is not null");
            return (Criteria) this;
        }

        public Criteria andCheckstateEqualTo(Integer value) {
            addCriterion("checkstate =", value, "checkstate");
            return (Criteria) this;
        }

        public Criteria andCheckstateNotEqualTo(Integer value) {
            addCriterion("checkstate <>", value, "checkstate");
            return (Criteria) this;
        }

        public Criteria andCheckstateGreaterThan(Integer value) {
            addCriterion("checkstate >", value, "checkstate");
            return (Criteria) this;
        }

        public Criteria andCheckstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("checkstate >=", value, "checkstate");
            return (Criteria) this;
        }

        public Criteria andCheckstateLessThan(Integer value) {
            addCriterion("checkstate <", value, "checkstate");
            return (Criteria) this;
        }

        public Criteria andCheckstateLessThanOrEqualTo(Integer value) {
            addCriterion("checkstate <=", value, "checkstate");
            return (Criteria) this;
        }

        public Criteria andCheckstateIn(List<Integer> values) {
            addCriterion("checkstate in", values, "checkstate");
            return (Criteria) this;
        }

        public Criteria andCheckstateNotIn(List<Integer> values) {
            addCriterion("checkstate not in", values, "checkstate");
            return (Criteria) this;
        }

        public Criteria andCheckstateBetween(Integer value1, Integer value2) {
            addCriterion("checkstate between", value1, value2, "checkstate");
            return (Criteria) this;
        }

        public Criteria andCheckstateNotBetween(Integer value1, Integer value2) {
            addCriterion("checkstate not between", value1, value2, "checkstate");
            return (Criteria) this;
        }

        public Criteria andFollowIsNull() {
            addCriterion("follow is null");
            return (Criteria) this;
        }

        public Criteria andFollowIsNotNull() {
            addCriterion("follow is not null");
            return (Criteria) this;
        }

        public Criteria andFollowEqualTo(Integer value) {
            addCriterion("follow =", value, "follow");
            return (Criteria) this;
        }

        public Criteria andFollowNotEqualTo(Integer value) {
            addCriterion("follow <>", value, "follow");
            return (Criteria) this;
        }

        public Criteria andFollowGreaterThan(Integer value) {
            addCriterion("follow >", value, "follow");
            return (Criteria) this;
        }

        public Criteria andFollowGreaterThanOrEqualTo(Integer value) {
            addCriterion("follow >=", value, "follow");
            return (Criteria) this;
        }

        public Criteria andFollowLessThan(Integer value) {
            addCriterion("follow <", value, "follow");
            return (Criteria) this;
        }

        public Criteria andFollowLessThanOrEqualTo(Integer value) {
            addCriterion("follow <=", value, "follow");
            return (Criteria) this;
        }

        public Criteria andFollowIn(List<Integer> values) {
            addCriterion("follow in", values, "follow");
            return (Criteria) this;
        }

        public Criteria andFollowNotIn(List<Integer> values) {
            addCriterion("follow not in", values, "follow");
            return (Criteria) this;
        }

        public Criteria andFollowBetween(Integer value1, Integer value2) {
            addCriterion("follow between", value1, value2, "follow");
            return (Criteria) this;
        }

        public Criteria andFollowNotBetween(Integer value1, Integer value2) {
            addCriterion("follow not between", value1, value2, "follow");
            return (Criteria) this;
        }

        public Criteria andStageIsNull() {
            addCriterion("stage is null");
            return (Criteria) this;
        }

        public Criteria andStageIsNotNull() {
            addCriterion("stage is not null");
            return (Criteria) this;
        }

        public Criteria andStageEqualTo(Integer value) {
            addCriterion("stage =", value, "stage");
            return (Criteria) this;
        }

        public Criteria andStageNotEqualTo(Integer value) {
            addCriterion("stage <>", value, "stage");
            return (Criteria) this;
        }

        public Criteria andStageGreaterThan(Integer value) {
            addCriterion("stage >", value, "stage");
            return (Criteria) this;
        }

        public Criteria andStageGreaterThanOrEqualTo(Integer value) {
            addCriterion("stage >=", value, "stage");
            return (Criteria) this;
        }

        public Criteria andStageLessThan(Integer value) {
            addCriterion("stage <", value, "stage");
            return (Criteria) this;
        }

        public Criteria andStageLessThanOrEqualTo(Integer value) {
            addCriterion("stage <=", value, "stage");
            return (Criteria) this;
        }

        public Criteria andStageIn(List<Integer> values) {
            addCriterion("stage in", values, "stage");
            return (Criteria) this;
        }

        public Criteria andStageNotIn(List<Integer> values) {
            addCriterion("stage not in", values, "stage");
            return (Criteria) this;
        }

        public Criteria andStageBetween(Integer value1, Integer value2) {
            addCriterion("stage between", value1, value2, "stage");
            return (Criteria) this;
        }

        public Criteria andStageNotBetween(Integer value1, Integer value2) {
            addCriterion("stage not between", value1, value2, "stage");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andDelstateIsNull() {
            addCriterion("delstate is null");
            return (Criteria) this;
        }

        public Criteria andDelstateIsNotNull() {
            addCriterion("delstate is not null");
            return (Criteria) this;
        }

        public Criteria andDelstateEqualTo(Integer value) {
            addCriterion("delstate =", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateNotEqualTo(Integer value) {
            addCriterion("delstate <>", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateGreaterThan(Integer value) {
            addCriterion("delstate >", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("delstate >=", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateLessThan(Integer value) {
            addCriterion("delstate <", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateLessThanOrEqualTo(Integer value) {
            addCriterion("delstate <=", value, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateIn(List<Integer> values) {
            addCriterion("delstate in", values, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateNotIn(List<Integer> values) {
            addCriterion("delstate not in", values, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateBetween(Integer value1, Integer value2) {
            addCriterion("delstate between", value1, value2, "delstate");
            return (Criteria) this;
        }

        public Criteria andDelstateNotBetween(Integer value1, Integer value2) {
            addCriterion("delstate not between", value1, value2, "delstate");
            return (Criteria) this;
        }

        public Criteria andCreatitimeIsNull() {
            addCriterion("creatitime is null");
            return (Criteria) this;
        }

        public Criteria andCreatitimeIsNotNull() {
            addCriterion("creatitime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatitimeEqualTo(Date value) {
            addCriterionForJDBCDate("creatitime =", value, "creatitime");
            return (Criteria) this;
        }

        public Criteria andCreatitimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("creatitime <>", value, "creatitime");
            return (Criteria) this;
        }

        public Criteria andCreatitimeGreaterThan(Date value) {
            addCriterionForJDBCDate("creatitime >", value, "creatitime");
            return (Criteria) this;
        }

        public Criteria andCreatitimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("creatitime >=", value, "creatitime");
            return (Criteria) this;
        }

        public Criteria andCreatitimeLessThan(Date value) {
            addCriterionForJDBCDate("creatitime <", value, "creatitime");
            return (Criteria) this;
        }

        public Criteria andCreatitimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("creatitime <=", value, "creatitime");
            return (Criteria) this;
        }

        public Criteria andCreatitimeIn(List<Date> values) {
            addCriterionForJDBCDate("creatitime in", values, "creatitime");
            return (Criteria) this;
        }

        public Criteria andCreatitimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("creatitime not in", values, "creatitime");
            return (Criteria) this;
        }

        public Criteria andCreatitimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("creatitime between", value1, value2, "creatitime");
            return (Criteria) this;
        }

        public Criteria andCreatitimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("creatitime not between", value1, value2, "creatitime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}